//
//  YKTagTextField.m
//  baisi
//
//  Created by 吴高烽 on 2016/11/4.
//  Copyright © 2016年 吴高烽. All rights reserved.
//

#import "YKTagTextField.h"

@implementation YKTagTextField
-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.placeholder = @"多个标签用逗号隔开";
        [self setValue:[UIColor grayColor] forKeyPath:@"_placeholderLabel.textColor"];
        self.height = YKTagButtonH ;
    }
    return  self ;
}

-(void)deleteBackward{
    !self.deleteBlock ? : self.deleteBlock();
    [super deleteBackward];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
